package exp03;

import java.util.Map;
import java.util.TreeMap;

public class B {
    public static void main(String[] args) {
        Map<String, Integer> map = new TreeMap<String, Integer>();// insert update select delete
        map.put("tom", 111);//insert
        map.put("jerry", 222);//insert
        map.put("peter", 33);//insert

        map.put("tom", 456);//update
        int tel = map.get("tom");
        map.remove("tom");//delete
        for (String key : map.keySet()) {//listAll
            System.out.println(key + ":" + map.get(key));
        }
    }
}
